<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <link href="../../../plugins/layui/css/layui.css" rel="stylesheet" media="all" />
    <link href="../../../css/components.min.css" rel="stylesheet" media="all" />
    <link href="../../../plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all" />
    <link rel="stylesheet" href="../../../css/font_tnyc012u2rlwstt9.css" media="all" />
</head>
<body>
<div class="layui-tab" lay-filter="demo">
  <ul class="layui-tab-title">
    <li class="layui-this">任务管理</li>
    <li>任务日志</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
	    <div class="portlet light" id="form_wizard_1">
	        <div class="div-inline" style="clear:both">
				<form class="layui-form">
		            <div class="layui-form-item">
		                <div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">任务名称：</label>
		                    <div class="layui-input-inline" >
		                        <input type="text" name="jobName"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                    <label class=" layui-form-label" style="width:100px">Bean名称：</label>
		                    <div class="layui-input-inline">
		                        <input type="text" name="beanName"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                    <label class=" layui-form-label" style="width:100px">任务状态：</label>
		                    <div class="layui-input-inline">
		                       	<select name="status">
				                    <option value="">请选择</option>
				                    <option value="0">正常</option>
				                    <option value="1">暂停</option>
				                </select>
		                    </div>
		                </div>
		                <button type="button" class="layui-btn" lay-submit lay-filter="searchJobs"><i class="fa fa-search"></i> 查询</button>
		                <button type="button" class="layui-btn layui-btn-normal" lay-submit  lay-filter="addJob"><i class="fa fa-plus-circle"></i> 增加</button>
		            </div>
		        </form>
	    	</div>
		    <div class="portlet-body">
		        <div class="dataTables_wrapper" style="margin-top: 0px!important" >
		            <table class="layui-hide" id="jobsTable" lay-filter="jobsTable"></table>
		        </div>
		    </div>
		</div>
		<!--操作部分-->
		<script type="text/html" id="operBar">
    		<button class="layui-btn layui-btn-xs" onclick="editJob('{{ d.id }}')"><i class="fa fa-file-text-o"></i>修改</button>
			 {{#  if(d.status === 1){ }}
    			<button class="layui-btn layui-btn-xs" onclick="resume('{{ d.id }}')"><i class="fa fa-check"></i>恢复</button>
			{{#  } else { }}
				<button class="layui-btn layui-btn-xs" onclick="pause('{{ d.id }}')"><i class="fa fa-coffee"></i>暂停</button>
			{{#  } }}
    		<button class="layui-btn layui-btn-xs" onclick="exec('{{ d.id }}')"><i class="fa fa-cog"></i>立即执行</button>
    		<button class="layui-btn layui-btn-xs layui-btn-danger" onclick="del('{{ d.id }}')"><i class="fa fa-remove"></i>删除</button>
		</script>
    </div>
    <div class="layui-tab-item">
    	<div class="portlet light" id="form_wizard_1">
	        <div class="div-inline" style="clear:both">
				<form class="layui-form">
		            <div class="layui-form-item">
		                <div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">任务名称：</label>
		                    <div class="layui-input-inline" >
		                        <input type="text" name="jobName"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                    <label class=" layui-form-label" style="width:100px">Bean名称：</label>
		                    <div class="layui-input-inline">
		                        <input type="text" name="beanName"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">Bean方法：</label>
		                    <div class="layui-input-inline" >
		                        <input type="text" name="methodName"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		            </div>
		            <div class="layui-form-item">
		            	<div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">执行状态：</label>
		                    <div class="layui-input-inline" >
				            	<select name="status">
				                    <option value="">请选择</option>
				                    <option value="1">成功</option>
				                    <option value="0">失败</option>
				                </select>
		                    </div>
		                </div>
		            	<div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">开始时间：</label>
		                    <div class="layui-input-inline" >
		                        <input id="startTime" type="text" name="startTime"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                    <label class="layui-form-label" style="width:100px">结束时间：</label>
		                    <div class="layui-input-inline">
		                        <input id="endTime" type="text" name="endTime"  autocomplete="off"  class="layui-input">
		                    </div>
		                </div>
		                <div class="layui-inline">
		                	<button class="layui-btn" lay-submit=""  lay-filter="searchLogs"><i class="fa fa-search"></i> 查询</button>
		                </div>
		            </div>
		         </form>
	        </div>
		    <div class="portlet-body">
		        <div class="dataTables_wrapper" style="margin-top: 0px!important" >
		            <table class="layui-hide" id="jobLogTable" lay-filter="jobLogTable"></table>
		        </div>
		    </div>
		</div>
    </div>
  </div>
</div>

<script src="../../../plugins/jquery.min.js"></script>
<script src="../../../plugins/layui/layui.js"></script>
<script src="../../../js/base.js"></script>
<script type="text/javascript" src="scheduler.js"></script>
</body>
</html>